home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.centrum.is!news
- From: bjarnir@centrum.is (Bjarni Ragnarsson)
- Newsgroups: comp.lang.c++
- Subject: Re: Turbo C++ 3.0 won't pass a string to Tasm???
- Date: 16 Apr 1996 11:49:24 GMT
- Organization: BR Software
- Message-ID: <4l01g4$p3t@newshost.centrum.is>
- References: <4kho1g$pkm@tribune.concentric.net>
- NNTP-Posting-Host: tungl-46.centrum.is
- X-Newsreader: WinVN version 0.82
-
- In article <4kho1g$pkm@tribune.concentric.net>, mikolaj@concentric.net says:
- >
- >Hi. I have a problem linking a Turbo C++ program with a Turbo Assembler
- >module. C++ program calls an assembler routine, which has to take a file name from C++ as an array ex: char filename[]="file.dat" , or
- >char *filename="file.dat". This is the C++ program:
- >Can somebody tell me what I am doing wrong? Please? Thanks mikE!
- >#include <fstream.h>
- >#include <conio.h>
- >#include <stdlib.h>
- >#include <ctype.h>
- >fstream fp;
- >extern "C" void asmroutine(char * filename);
- >char * filename="file.dat";
- >//or char filename[]="file.dat";
-
- Don't you want to use strcpy(filename, "file.dat") ?
-
- Bjarni Ragnarsson
- bjarnir@centrum.is
-